/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IndustrialHumidifier {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '030010005';
    }

    get categoryName() {
        return '\u5de5\u4e1a\u52a0\u6e7f\u5668';
    }

    getCurrentHumidity(params) {
        return command({
            method: 'getCurrentHumidity',
            methodId: 'pDVMdJDW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentPower(params) {
        return command({
            method: 'getCurrentPower',
            methodId: 'pgtWC2Tz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHumidity(params) {
        return command({
            method: 'getHumidity',
            methodId: 'pZh2cvS1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpeed(params) {
        return command({
            method: 'getSpeed',
            methodId: 'p18tSTlR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGEiGNCo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHumidity(params) {
        return command({
            method: 'setHumidity',
            methodId: 'pe2j6dhb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpeed(params) {
        return command({
            method: 'setSpeed',
            methodId: 'pUr9sLqk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppvm0Zzq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IndustrialHumidifier;
